package com.own.component.test.util.config;

import com.own.component.client.base.RequestClientManager;
import com.own.component.client.property.ClientProperty;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;

/**
 * RequestClientTestManager
 *
 * @author chenxueli
 * @date 2023-12-12 11:33:00
 */
@Slf4j
@Component("requestClientManager")
public class RequestClientTestManager extends RequestClientManager {

    public RequestClientTestManager(ClientProperty clientProperty) {
        super(clientProperty);
    }

    /**
     * 获取客户端信息
     *
     * @param request 请求内容
     * @return 客户端信息
     */
    @Override
    public String client(HttpServletRequest request) {
        return "local-test";
    }

}
